import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { createApiResponse } from '@monorepo/shared-utils';
import { User } from '@monorepo/shared-types';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  
  // 示例：使用共享工具函数和类型
  const demoUser: User = {
    id: '1',
    name: 'Admin',
    email: 'admin@example.com',
    role: 'admin'
  };
  
  console.log(createApiResponse(demoUser, true, 'User fetched successfully'));
  
  await app.listen(8888);
}
bootstrap(); 